const router = require('koa-router')();
const tradeController = require('./../controllers/trade.controller');

router.prefix('/trades');

// 创建交易记录
router.post('/', tradeController.addTradeRecord);
// 获取出售记录
router.get('/sell', tradeController.getSaleRecord);
// 获取购买记录
router.get('/buy', tradeController.getPurchaseRecord);
module.exports = router